#coding=utf-8
import _prepare
from services.subscribe.model import StandardKeyword
import random
if __name__=='__main__':
    #objs = CustomKeyword.all_objects().select()
    #for n in objs:
    #    n.standard_keyword = random.randint(1,10)
    #    n.save()
    sd_words=['种类1','种类2','种类3','种类4','种类5','种类6','种类7','种类8','种类9','种类10']
    for index,item in enumerate(sd_words):
        obj = StandardKeyword()
        obj.datamap[obj._uid]=index+1
        obj.keyword = item
        obj.save()